package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Assignment;
import com.woniuxy.mapper.AssignmentMapper;
import com.woniuxy.service.AssignmentService;
@Service
public class AssignmentServiceImpl implements AssignmentService{
	@Autowired
	private AssignmentMapper assignmentMapper;
	@Override
	public List<Assignment> findAllAssignment() {
		return assignmentMapper.findAllAssignment();
	}
	//根据关键字模糊查询
	@Override
	public List<Assignment>findByWords(String words){
		return assignmentMapper.findByWords(words);
	}
	@Override
	public List<Assignment> findAssignmentByStatus(int status) {
		return assignmentMapper.findAssignmentByStatus(status);
	}
	
}
